package com.zlh123.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zlh123.commom.util.PageResult;
import com.zlh123.entity.Book;
import com.zlh123.vo.BookVo;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zlh
 * @since 2025-01-13
 */
public interface IBookService extends IService<Book> {
    PageResult<Book> findBooksByPage(int page, int pageSize);
    // 3. 条件带分页查询
    PageResult<Book> searchBook(Integer page, Integer pageSize, BookVo vo);
    boolean addBook(Book book);

}
